package com.polaris.live.utils.zego.beauty

import com.polaris.live.R
import com.polaris.live.translation.R.string

/**
 * 滤镜表
 *
 * @author Created by lucas on 2023/12/6 13:31
 * @since 1.0.0
 */
enum class BeautyFilterEnum(
    val type: Int,
    val fName: String,
    val iconId: Int,
    val stringId: Int,
    val desc: String
) {

    ORIGIN(400211, "origin", R.drawable.beauty_filter_origin, string.filter_origin, "原始"),

    ZIRAN_3(400212, "ziran3", R.drawable.beauty_filter_ziran3, string.filter_ziran_3, "白茶"),
    ZIRAN_4(400213, "ziran4", R.drawable.beauty_filter_ziran4, string.filter_ziran_4, "冬日阳光"),
    GEXING_1(400214, "gexing1", R.drawable.beauty_filter_gexing1, string.filter_gexing_1, "复古蓝"),
    MITAO_3(400215, "mitao3", R.drawable.beauty_filter_mitao3, string.filter_mitao_3, "情人节"),
    XIAOQINGXIN_1(400216, "xiaoqingxin1", R.drawable.beauty_filter_xiaoqingxin1, string.filter_xiaoqingxin_1, "薔薇"),
    NUANSEDIAO_2(400217, "nuansediao2", R.drawable.beauty_filter_nuansediao2, string.filter_nuansediao_2, "金灿灿"),
    BAILIANG_2(400218, "bailiang2", R.drawable.beauty_filter_bailiang2, string.filter_bailiang_2, "光斑"),
    NUANSEDIAO_1(400219, "nuansediao1", R.drawable.beauty_filter_nuansediao1, string.filter_nuansediao_1, "油画"),
    FENNEN_8(400220, "fennen8", R.drawable.beauty_filter_fennen8, string.filter_fennen_8, "粉嫩"),
    FENNEN_1(400221, "fennen1", R.drawable.beauty_filter_fennen1, string.filter_fennen_1, "白嫩"),
    ZHIGANHUI_5(400222, "zhiganhui5", R.drawable.beauty_filter_zhiganhui5, string.filter_zhiganhui_5, "帅气"),
    ZHIGANHUI_7(400223, "zhiganhui7", R.drawable.beauty_filter_zhiganhui7, string.filter_zhiganhui_7, "深邃"),
    BAILIANG_4(400224, "bailiang4", R.drawable.beauty_filter_bailiang4, string.filter_bailiang_4, "微蓝"),
    GEXING_3(400225, "gexing3", R.drawable.beauty_filter_gexing3, string.filter_gexing_3, "火锅"),
    MITAO_2(400226, "mitao2", R.drawable.beauty_filter_mitao2, string.filter_mitao_2, "碎钻"),

    ;

    companion object {

        fun getFilterByType(type: Int?): BeautyFilterEnum {
            if (type == null) {
                return ORIGIN
            }

            values().forEach {
                if (it.type == type) {
                    return it
                }
            }
            return ORIGIN
        }
    }
}